package net.zoneland.knowledge.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.zoneland.knowledge.dao.DirectTrainForPartyMapper;
import net.zoneland.knowledge.model.DirectTrainForParty;
import net.zoneland.knowledge.service.DirectTrainForPartyService;

/**
 * 党建服务直通车业务接口实现.
 * @author chw
 * 2022/11/4
 */
@Service
public class DirectTrainForPartyServiceImpl implements DirectTrainForPartyService{

    /**
     * 日志.
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(DirectTrainForPartyServiceImpl.class);

    /**
     * 党建服务直通车数据接口.
     */
    @Autowired
    private DirectTrainForPartyMapper directTrainForPartyMapper;


    /**
     * 查询党建服务直通车.
     * @return 党建服务直通车集合
     */
    @Override
    public List<DirectTrainForParty> search() {
        return directTrainForPartyMapper.search();
    }

    /**
     * 查询pc端链接不为空的直通车数据.
     * @return 党建服务直通车集合
     */
    @Override
    public List<DirectTrainForParty> searchPc() {
        return directTrainForPartyMapper.searchPc();
    }

    /**
     * 查询moa端链接不为空的直通车数据.
     * @return 党建服务直通车集合
     */
    @Override
    public List<DirectTrainForParty> searchMoa() {
        return directTrainForPartyMapper.searchMoa();
    }

    /**
     * 根据title模糊查询党建直通车数据.
     *
     * @param title 标题
     * @return 直通车集合
     */
    @Override
    public List<DirectTrainForParty> queryByTitle(final String title) {
        return directTrainForPartyMapper.searchByTitle(title);
    }

}
